﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace EdgeStatz.Controls
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            AvailabilityContactCollection collection = new AvailabilityContactCollection();
            collection.Add(new AvailabilityContact("A"));
            collection.Add(new AvailabilityContact("B"));
            collection.Add(new AvailabilityContact("C"));
            collection.Add(new AvailabilityContact("D"));
            /*collection.Add(new AvailabilityContact("E"));
            collection.Add(new AvailabilityContact("F"));
            collection.Add(new AvailabilityContact("G"));
            collection.Add(new AvailabilityContact("H"));
            collection.Add(new AvailabilityContact("I"));
            collection.Add(new AvailabilityContact("J"));
            collection.Add(new AvailabilityContact("K"));
            collection.Add(new AvailabilityContact("L"));
            collection.Add(new AvailabilityContact("M"));
            collection.Add(new AvailabilityContact("N"));
            collection.Add(new AvailabilityContact("O"));
            collection.Add(new AvailabilityContact("P"));
            collection.Add(new AvailabilityContact("Q"));
            collection.Add(new AvailabilityContact("R"));
            collection.Add(new AvailabilityContact("S"));
            collection.Add(new AvailabilityContact("T"));
            collection.Add(new AvailabilityContact("U"));
            collection.Add(new AvailabilityContact("V"));
            collection.Add(new AvailabilityContact("W"));
            collection.Add(new AvailabilityContact("X"));
            collection.Add(new AvailabilityContact("Y"));
            collection.Add(new AvailabilityContact("Z"));*/
            collection[1].Tasks.Add(new AvailabilityTask(DateTime.Now,""));
            collection[2].Tasks.Add(new AvailabilityTask(DateTime.Now.AddDays(-1),DateTime.Now, ""));
            collection[2].Tasks[0].Color = Color.Red;
            availabilityControl1.Mode = AvailabilityMode.Month;
            availabilityControl1.Contacts = collection;
        }
    }
}
